<script setup>
import { reactive, ref, toRefs } from 'vue'
const showname=()=>{
    alert('我是陈会丽')
    console.log('我是陈会丽1')
}
</script>

<template>
    <!-- 事件绑定：v-on -->
 <div>
    <h1>事件绑定</h1>  
 <button @click="showname">点我</button>
 </div>
</template>

<style scoped>
h1{color: blue;}
h2{
    color: aquamarine;
}
.read-the-docs {
  color: #888;
}
</style>
